package net.bwie.realtime.vehicle.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

// 简化的行程结果类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TripDetectionResult {
    private String vin;
    private String tripId;
    private long startTime;
    private long endTime;
    private double distance;

    // getters and setters
    public String getDuration() {
        long minutes = (endTime - startTime) / 60000;
        return minutes + "分钟";
    }
}
